package com.kushuigu.dao;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

@Component("bookDao")
@Scope("prototype")
public class BookDaoImpl implements BookDao{
    @Value("${bookName}")
    private String name;
    @Override
    public void save() {
        System.out.println("book dao save"+name);
    }
    @Override
    public void init(){
        System.out.println("init.");
    }
    @Override
    public void destroy(){
        System.out.println("destroy.");
    }
}
